<div class="table-toolbar">
    <div class="row">
        <div class="col-md-6">
            {if (!empty($pageSize['size']))}
                <div class="list-length inline-block">
                    <form action="{{$pageSize['url']}}" method="post">
                        {{:token()}}
                        <label for="pageSize">
                            <select id="pageSize" class="form-control input-xsmall input-inline" name="pageSize" onchange="this.form.submit();">
                                {foreach ($pageSize['size'] as $size)}
                                    <option value="{{$size}}" {if ($pageSize['current'] == $size) } dselected="selected" {/if} >{{$size}}</option>
                                {/foreach}
                            </select>&nbsp;{{:__('pagination.per_page')}}
                        </label>
                    </form>
                </div>
            {/if}
            <div class="inline-block">
                <a href="{{:url('/'.$model.'/add')}}" class="btn blue-madison">
                    {{:__('add')}} <i class="fa fa-plus"></i>
                </a>
                {if ($exportFields && check_access('admin/'.$model.'/export'))}
                    <a href="{{:url('/'.$model.'/export', $_GET)}}" class="btn green-meadow">
                        {{:__('export')}} <i class="fa fa-table"></i>
                    </a>
                {/if}
            </div>
        </div>
        {if ($searchFields)}
            <div class="col-md-6">
                <div class="search-form right">
                    <form action="" method="get">
                        <label>{{//:__('common.search')}} <input type="text" class="form-control input-inline" name="_keyword" value="{{$Request.get._keyword}}"/></label>
                        <button type="submit" class="btn blue-madison">
                            <span class="fa fa-search"></span>
                            {{:__('search')}}
                        </button>
                    </form>
                </div>
            </div>
        {/if}
    </div>
</div>